var Page = function(){
    this.init();
};
Page.prototype = {
    params: {
        passport: '',
        questionId:null
    },
    init: function(){
        this.initParams();
        this.initEvent();
    },
    initParams: function(){
        this.params.passport = Pub.getCookie('_PASSPORT');
        this.params.questionId = Pub.getSession('questionId');
    },
    getData:function(){
        var _this = this;
        var paramsObj = {
            passport: _this.params.passport,
            questionId:_this.params.questionId
        };
        Api.adminquestioninfo(paramsObj, function(data){
            console.log(data);
            $('#title').text(data.title);
            $('#content').html(data.content);
            if (data.isShow==0) {
                honeySwitch.showOff("#is_show");
            };
        });
    },
    initEvent: function(){
        var _this = this;
        _this.getData();
    }
};
var page = new Page();